import "./assets/main.css";
import { createApp } from "vue";
import App from "./App.vue";
import Router from "./router"; // 导入路由配置

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// Element图标 按需引入
import {
	Setting,
	EditPen,
	Search,
	User,
	Delete,
	ChatDotRound,
	Plus,
} from "@element-plus/icons-vue";

const app = createApp(App);

// 图标注入
[Setting, EditPen, Search, User, Delete, ChatDotRound, Plus].forEach((icon) => {
	app.component(icon.name, icon);
});

app.use(Router);
app.use(ElementPlus);
app.mount("#app");
